<template>
  <e-select-input-group v-bind="$props" @select-change="handleSelectChange">
    <e-input-money v-bind="$props" v-on="$listeners"/>
  </e-select-input-group>
</template>
<script>
  import ESelectInputGroup from '@e-ui/SelectInputGroup'
  import EInputMoney from '@e-ui/InputMoney'
  export default {
    props: {
      ...ESelectInputGroup,
      selectOptions: {
        type: Array,
        default () {
          return [
            {
              value: 1,
              label: '现金'
            },
            {
              value: 2,
              label: '刷卡'
            },
            {
              value: 3,
              label: '微信支付'
            },
            {
              value: 4,
              label: '支付宝'
            }
          ]
        }
      },
      placeholder: {
        type: String,
        default: '实收金额'
      }
    },
    components: {
      ESelectInputGroup,
      EInputMoney
    },
    methods: {
      handleSelectChange (value) {
        this.$emit('update:selectValue', value)
      }
    }
  }
</script>
<style>
</style>
